<?php
require_once("include/setup.php");
require_once(CLASS_PATH.'translation.list.class.php');
LoginHelper::controlAccess(array('type_droits_user' => '>=1'));

$translation_lists = Translation_List::getTranslationLists(array(
	'id_user' => LoginHelper::getIdUserConnected(),
	'index_by_id' => true
));

$nb_translations_list = array();
$ids_list = array_keys($translation_lists);

if (!empty($ids_list)) {
	$nb_translations_list = Translation_List::getNbTranslations(array(
		'ids' => $ids_list
	));
}


$v = new JapwordView();
$v->addNotifications();
$v->assign('translation_lists', $translation_lists);
$v->assign('nb_translations_list', $nb_translations_list);

$v->display('translation_list_mylist.html');
?>